File encoding AttributeFile(path).encoding Description The encoding attribute gets or sets the encoding for subsequent read/write operations. The encoding is one of several predefined constants that follow the common Internet encoding names. Valid names are UCS-2, X-SJIS, ISO-8851-9, ASCII or the like. A special encoder, BINARY, is used to read binary files. This encoder stores each byte of the file as one Unicode character regardless of any encoding. When writing, the lower byte of each Unicode character is treated as a single byte to write. See Encoding Names for a list of encodings.If an unrecognized encoding is used, the encoding reverts to the system default encoding. Type String; read/write. |